package com.yangguang.huahui.api;

import com.yangguang.huahui.Config;
import com.yangguang.huahui.entity.Quotes;
import com.yangguang.huahui.entity.Reply;

import retrofit2.http.GET;
import retrofit2.http.Query;
import rx.Observable;

/**
 * Created by Administrator on 2017/3/20.
 */

public interface ProblemApi {
    /**
     * 行情列表
     * @param page
     * @return
     */
    @GET(Config.QUOTES)
    Observable<Quotes> getList(@Query("page") int page);

    /**
     * 问答列表
     * @return
     */
    @GET(Config.REPLY_LIST)
    Observable<Reply> getReplyList();

    @GET(Config.MY_QUESTIONS_LIST)
    Observable<Reply> getQuestionList(@Query("uid") String uid);
}
